< previous page page_354 next page >

Page 354
z0374-01.gif
Figure 11.20
B-splines defined by the same control points but
with different levels of smoothness.
If k is large, the curve is smoother but may not fit the data as well. Figure 11.20 shows three B-splines defined by the same control points but with different values for k. The curve with k = 3 matches the points most closely; the curve with k = 5 is the smoothest.
For Bezier curves, the parameter t varies between 0 and 1. For a B-spline, t varies between 0 and N k + 2 where k is the smoothness parameter and the control points are numbered from 0 to N.
Figure 11.21 shows the blending functions for a B-spline curve with seven control points and k = 3. Notice that the sum of the values of the functions for any given value of t is 1. That means the B-spline is essentially taking a weighted average of the control points at each t value.
z0374-02.gif
Figure 11.21
B-spline blending functions for k = 3.

 
< previous page page_354 next page >